package com.example.demo.config;

import entity.Result;
import entity.StatusCode;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Author by admin, Email xx@xx.com, Date on 2020/6/4.
 * PS: Not easy to write code, please indicate.
 */
@Configuration
public class GlobalExecption {
    @ResponseBody
    public Result GlobalExecption(){
        return new Result(true, StatusCode.ERROR,"程序出现异常请稍后再试！！！");
    }
}
